import React from 'react'
import { Button } from 'antd'

class SendCode extends React.Component {

    GetCode = () => {
        console.log(this.props.phoneNum)
        this.axios({
            url:'/GetCode',
            method:'post',
            data:{phone:this.props.phoneNum}
        }).then(data => {
            console.log(data)
        })
    }
    render() {
        return (
            <div>
                <Button onClick={() => this.GetCode()}>获取验证码</Button>
            </div>
        )
    }
}
export default SendCode